package com.liuguang.gateway.config.security.dao;

import com.liuguang.api.gateway.security.pojo.UserDO;
import com.liuguang.api.gateway.security.pojo.bo.AuthUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserDO record);

    int insertSelective(UserDO record);

    UserDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserDO record);

    int updateByPrimaryKey(UserDO record);

    List<UserDO> selectByCondition(UserDO userDo);

    List<AuthUser> selectByUsername(String username);
}